<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../../base.jsp" %>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            货运管理
            <small>修改装箱单</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="${pageContext.request.contextPath}/home/home.do"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="all-order-manage-list.html">货运管理</a></li>
            <li class="active">修改装箱单</li>
        </ol>
    </section>
    <!-- 内容头部 /-->
    <form id="editForm" action="${ctx}/cargo/packing/edit.do" method="post">
        <input type="hidden" name="packingListId" value="${packingList.packingListId}">
        <!-- 正文区域 -->
        <section class="content">
            <div class="panel panel-default">
                <div class="panel-heading">装箱单</div>

                <div class="row data-type" style="margin: 0px">
                    <div class="col-md-2 title">出单方</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="出单方" name="seller"
                               value="${packingList.seller}"/>
                    </div>

                    <div class="col-md-2 title">收单方</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="收单方" name="buyer"
                               value="${packingList.buyer}"/>
                    </div>

                    <div class="col-md-2 title">唛头</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="唛头" name="marks"
                               value="${packingList.marks}"/>
                    </div>

                    <div class="col-md-2 title">发票号</div>
                    <div class="col-md-4 data">
                        <input type="text" name="invoiceNo" class="form-control" placeholder="发票号"
                               value="${packingList.invoiceNo}"/>
                    </div>

                    <div class="col-md-2 title">摘要</div>
                    <div class="col-md-4 data">
                        <input type="text" name="descriptions" class="form-control" placeholder="摘要"
                               value="${packingList.descriptions}"/>
                    </div>

                    <div class="col-md-2 title">报运单号</div>
                    <div class="col-md-4 data">
                        <input type="text" name="exportIds" class="form-control" placeholder="报运单号"
                               value="${packingList.exportIds}">
                    </div>

                    <div class="col-md-2 title">总箱数</div>
                    <div class="col-md-4 data">
                        <input type="text" name="totalCartons" class="form-control" placeholder="总箱数"
                               value="${packingList.totalCartons}"/>
                    </div>

                    <div class="col-md-2 title">总毛重/kg</div>
                    <div class="col-md-4 data">
                        <input type="text" name="totalWeight" class="form-control" placeholder="总毛重"
                               value="${packingList.totalWeight}">

                    </div>
                    <div class="col-md-2 title">体积/立方米</div>
                    <div class="col-md-4 data">
                        <input type="text" name="totalVolume" class="form-control" placeholder="体积"
                               value="${packingList.totalVolume}">
                    </div>

                </div>

            </div>


            <!-- .box-body -->
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">装箱单货物列表</h3>
                </div>

                <div class="box-body">

                    <!-- 数据表格 -->
                    <div class="table-box">
                        <!--数据列表-->
                        <table class="table table-bordered table-striped table-hover dataTable" id="mRecordTable">
                            <tr class="rowTitle" align="middle">
                                <td width="33">序号</td>
                                <td width="60px">货号</td>
                                <td width="90px">数量</td>
                                <td width="90px">毛重/kg</td>
                                <td width="90px">净重/kg</td>
                                <td width="90px">长/cm</td>
                                <td width="90px">宽/cm</td>
                                <td width="90px">高/cm</td>

                            </tr>
                            <c:forEach items="${eps}" var="o" varStatus="status">
                                <tr class="odd" onmouseover="this.className='highlight'"
                                    onmouseout="this.className='odd'">
                                    <input type="hidden" name="exportProducts[${status.index}].id" value="${o.id}"/>
                                    <td>${status.index+1}</td>
                                    <td>${o.productNo}</td>
                                    <td>
                                        <input style="width: 90px" name="exportProducts[${status.index}].cnumber"
                                               value="${o.boxNum}" disabled>
                                    </td>
                                    <td>
                                        <input style="width: 90px" name="exportProducts[${status.index}].grossWeight"
                                               value="${o.grossWeight}" disabled>
                                    </td>
                                    <td>
                                        <input style="width: 90px" name="exportProducts[${status.index}].netWeight"
                                               value="${o.netWeight}" disabled>
                                    </td>
                                    <td>
                                        <input style="width: 90px" name="exportProducts[${status.index}].sizeLength"
                                               value="${o.sizeLength}" disabled>
                                    </td>
                                    <td>
                                        <input style="width: 90px" name="exportProducts[${status.index}].sizeWidth"
                                               value="${o.sizeWidth}" disabled>
                                    </td>
                                    <td>
                                        <input style="width: 90px" name="exportProducts[${status.index}].sizeHeight"
                                               value="${o.sizeHeight}" disabled>
                                    </td>
                                </tr>
                            </c:forEach>
                        </table>
                        <!--数据列表/-->
                        <!--工具栏/-->
                    </div>
                    <!-- 数据表格 /-->
                </div>
                <!-- /.box-body -->

            </div>

            <!--工具栏-->
            <div class="box-tools text-center">
                <button type="submit" class="btn bg-maroon">保存</button>
                <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
            </div>
            <!--工具栏/-->
        </section>
    </form>
</div>
<!-- 内容区域 /-->
</body>

</html>